﻿@using RentHouse.DTO
@using RentHouse.Common
@{

    string userName = string.Empty;
    string roleName = string.Empty;
}


<body>
    <header class="Hui-header cl">
        <a class="Hui-logo l" title="H-ui.admin v2.3" href="/">掌上租后台管理系统</a> <a class="Hui-logo-m l" href="/" title="H-ui.admin">H-ui</a> <span class="Hui-subtitle l">V2.3</span>

        @{
            //获取当前登录的用户信息
            var user = User as MyFormsPrincipal<LoginAdminDTO>;
            if (user != null && user.UserData != null)
            {
                userName = user.UserData.Name;
                roleName = user.UserData.RoleName;
            }
        }

        <ul class="Hui-userbar">
            <li>@roleName</li>
            <li class="dropDown dropDown_hover">


                <a href="#" class="dropDown_A">@userName <i class="Hui-iconfont">&#xe6d5;</i></a>
                <ul class="dropDown-menu radius box-shadow">
                    <li><a href="#">个人信息</a></li>
                    <li><a href="#">切换账户</a></li>
                    <li><a id="btn_Logout" href="javascript:;">退出</a></li>
                </ul>
            </li>
            <li id="Hui-msg"> <a href="#" title="消息"><span class="badge badge-danger">1</span><i class="Hui-iconfont" style="font-size:18px">&#xe68a;</i></a> </li>
            <li id="Hui-skin" class="dropDown right dropDown_hover">
                <a href="javascript:;" title="换肤"><i class="Hui-iconfont" style="font-size:18px">&#xe62a;</i></a>
                <ul class="dropDown-menu radius box-shadow">
                    <li><a href="javascript:;" data-val="default" title="默认（黑色）">默认（黑色）</a></li>
                    <li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li>
                    <li><a href="javascript:;" data-val="green" title="绿色">绿色</a></li>
                    <li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
                    <li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
                    <li><a href="javascript:;" data-val="orange" title="绿色">橙色</a></li>
                </ul>
            </li>
        </ul>
        <a aria-hidden="false" class="Hui-nav-toggle" href="#"></a>
    </header>
    <aside class="Hui-aside">
        <input runat="server" id="divScrollValue" type="hidden" value="" />
        <div class="menu_dropdown bk_2">
            <dl id="menu-article">
                <dt><i class="Hui-iconfont">&#xe616;</i> 房源管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
                <dd>
                    <ul>
                        <li><a _href="/House/Index?typeId=12" href="javascript:void(0)">整租管理</a></li>
                        <li><a _href="/House/Index?typeId=11" href="javascript:void(0)">合租管理</a></li>
                        <li><a _href="/House/Index?typeId=18" href="javascript:void(0)">短租管理</a></li>
                    </ul>
                </dd>
            </dl>

            <dl id="menu-product">
                <dt><i class="Hui-iconfont">&#xe620;</i> 租房预约管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
                <dd>
                    <ul>
                        <li><a _href="/HouseAppointment/Index" href="javascript:void(0)">预约订单管理</a></li>

                    </ul>
                </dd>
            </dl>



            <dl id="menu-system">
                <dt><i class="Hui-iconfont">&#xe62e;</i> 系统管理<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
                <dd>
                    <ul>
                        <li><a _href="/AdminUser/Index" href="javascript:void(0)">用户管理</a></li>
                        <li><a _href="/Roles/Index" href="javascript:void(0)">角色管理</a></li>
                        <li><a _href="/Permission/Index" href="javascript:void(0)">权限管理</a></li>

                    </ul>
                </dd>
            </dl>
        </div>
    </aside>
    <div class="dislpayArrow"><a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a></div>
    <section class="Hui-article-box">
        <div id="Hui-tabNav" class="Hui-tabNav">
            <div class="Hui-tabNav-wp">
                <ul id="min_title_list" class="acrossTab cl">
                    <li class="active"><span title="我的桌面" data-href="welcome.html">我的桌面</span><em></em></li>
                </ul>
            </div>
            <div class="Hui-tabNav-more btn-group"><a id="js-tabNav-prev" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d4;</i></a><a id="js-tabNav-next" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d7;</i></a></div>
        </div>
        <div id="iframe_box" class="Hui-article">
            <div class="show_iframe">
                <div style="display:none" class="loading"></div>
                <iframe scrolling="yes" frameborder="0" src="/Main/Welcome"></iframe>
            </div>
        </div>
    </section>
</body>

    @section footScript
{
        <script>
            $(function () {

                $("#btn_Logout").click(function () {


                    //弹出确认框
                    layer.confirm('您确定要退出系统吗？', { icon: 3, title: '温馨提示' }, function (index) {

                        location.href = "/Home/Logout";

                        //关闭遮罩层
                        layer.close(index);
                    });

                });

            });
        </script>


}